/**
 * Title: ThreadPoolDelegate.java
 * Description:
 * Copyright: Copyright (c) 2013-2015 luoxudong.com
 * Company: 个人
 * Author: 罗旭东 (hi@luoxudong.com)
 * Date: 2015年7月13日 上午10:37:27
 * Version: 1.0
 */
package cn.nexd.location.utils.threadpool.core;


import cn.nexd.location.utils.threadpool.IThreadPoolManager;
import cn.nexd.location.utils.threadpool.ThreadPoolManager;

/**
 * ClassName: ThreadPoolDelegate
 * Description:线程池工厂类
 * Create by: 罗旭东
 * Date: 2015年7月13日 上午10:37:27
 */
public class ThreadPoolDelegate {

    private static IThreadPoolManager manager = null;

    private ThreadPoolDelegate() {
        manager = new ThreadPoolManager();
    }


    public static ThreadPoolDelegate getThreadPoolDelegate() {
        return ThreadPoolFactoryHolder.THREAD_POOL_FACTORY;
    }

    private static class ThreadPoolFactoryHolder {
        public final static ThreadPoolDelegate THREAD_POOL_FACTORY = new ThreadPoolDelegate();
    }

    public IThreadPoolManager getThreadPoolManager() {
        return manager;
    }
}
